package grafica.ventanas;

import javax.swing.JOptionPane;

public abstract class Ventana {

	public Ventana()
	{}
	
	public abstract void setVisible (boolean visible); 
	
	public abstract void cerrarVentana();

	public void mostrarMensajeExito(String msj)
	{
		JOptionPane.showMessageDialog(null, msj, "Exito", JOptionPane.INFORMATION_MESSAGE);
	}
	
	public void mostrarMensajeError(String msj)
	{
		JOptionPane.showMessageDialog(null, msj, "Error", JOptionPane.ERROR_MESSAGE);
	}

}
